module.exports = (app) => {
    const { router, controller } = app;
    router.get('/', controller.home.index);
    // 用户相关
    router.post('/login', controller.user.login);
    router.post('/register', controller.user.register);
    // 博客相关路由 GET POST PUT DELETE
    router.get('/blogs', controller.blog.index);
    router.post('/blogs', controller.blog.create);
    // router.put('/blogs/:id', controller.blog.update);
    // router.delete('/blogs/:id', controller.blog.delete);
};
